package v1

import (
	"gf_blog_admin/internal/model"
	"github.com/gogf/gf/v2/frame/g"
)

type DictDataListReq struct {
	g.Meta `path:"/system/dict_item" method:"get" tags:"system" sm:"字典项列表" can:"system.dict_item"`
	model.DictDataListInput
}

type DictDataListRes struct {
	Total int                   `json:"total" dc:"数据总数"`
	Rows  []*model.DictDataItem `json:"rows" dc:"数据集合"`
}

type DictDataStoreReq struct {
	g.Meta `path:"/system/dict_item/store" method:"post" tags:"system" sm:"字典项创建" can:"system.dict_item.store"`
	model.DictDataFormInput
}

type DictDataStoreRes struct{}

type DictDataUpdateReq struct {
	g.Meta `path:"/system/dict_item/update/{id}" method:"put" tags:"system" sm:"字典项更新" can:"system.dict_item.update"`
	Id     uint64 `json:"id" in:"query" v:"required|min:1" dc:"字典项id"`
	model.DictDataFormInput
}

type DictDataUpdateRes struct{}

type DictDataDestroyReq struct {
	g.Meta `path:"/system/dict_item/destroy" method:"delete" tags:"system" sm:"字典项删除" can:"system.dict_item.destroy"`
	Ids    []uint64 `json:"ids" v:"required|array|max-length:200" dc:"字典项id集合"`
}

type DictDataDestroyRes struct{}
